package com.woniu.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 杨光 微信号:tolryg
 * @time 15:44
 */
@Table(name="tb_user")
public class User {

    @Id
    private Integer userId;//` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
    private String userName;//` varchar(50) DEFAULT NULL COMMENT '用户姓名',
    private String userAccount;//` varchar(50) DEFAULT NULL COMMENT '用户登录账号',
    private String userPassword;//` varchar(50) DEFAULT NULL COMMENT '密码',
    private String userEmail;//` varchar(50) DEFAULT NULL COMMENT 'email邮箱',
    private Integer userType;//` int(1) DEFAULT NULL COMMENT '用户类型1-管理员 2-普通外部用户',
    private Integer userStatus;//` int(1) DEFAULT NULL COMMENT '1-有效 2-无效 3-锁定',
    private String userPhone;//` varchar(20) DEFAULT NULL COMMENT '用户手机号码',
    private String userGender;//` char(1) DEFAULT NULL COMMENT '性别 ''1’-男 ''0''-女',
    private Date userBirthday;//` date DEFAULT NULL COMMENT '生日',
    private String userAutograph;//` varchar(100) DEFAULT NULL COMMENT '用户简介',
    private Long userPoints;//` int(11) DEFAULT NULL COMMENT '积分',
    private String userPhoto;//` varchar(255) DEFAULT NULL COMMENT '用户图片',
    private Date userLockTime;//` datetime DEFAULT NULL COMMENT '账户锁定时间',


    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userAccount='" + userAccount + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userType=" + userType +
                ", userStatus=" + userStatus +
                ", userPhone='" + userPhone + '\'' +
                ", userGender='" + userGender + '\'' +
                ", userBirthday=" + userBirthday +
                ", userAutograph='" + userAutograph + '\'' +
                ", userPoints=" + userPoints +
                ", userPhoto='" + userPhoto + '\'' +
                ", userLockTime=" + userLockTime +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserGender() {
        return userGender;
    }

    public void setUserGender(String userGender) {
        this.userGender = userGender;
    }

    public Date getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(Date userBirthday) {
        this.userBirthday = userBirthday;
    }

    public String getUserAutograph() {
        return userAutograph;
    }

    public void setUserAutograph(String userAutograph) {
        this.userAutograph = userAutograph;
    }

    public Long getUserPoints() {
        return userPoints;
    }

    public void setUserPoints(Long userPoints) {
        this.userPoints = userPoints;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public Date getUserLockTime() {
        return userLockTime;
    }

    public void setUserLockTime(Date userLockTime) {
        this.userLockTime = userLockTime;
    }
}
